﻿<div class="span10">
	<h1>Buscar Responsável</h1>
	<?php echo Flash::render(); ?>
	<?php echo Form::open('responsavel/buscar', array('class' => 'well  form-search')); ?>
	<label>Nome: </label>
	<input type="text" name="nome" value="<?php echo isset($_POST['nome']) ? $_POST['nome']: ''; ?>" class="span3" placeholder="Nome">
	<button type="submit" name="buscar" class="btn">Buscar</button>
	<?php echo Form::close(); ?>
	<table class="table table-bordered">
	<thead>
		<tr>
			<th>Responsável</th>
			<th>Setor</th>
			<th>Telefone</th>
			<th>Email</th>
		</tr>
	</thead>
	<?php if(isset($responsaveis)): foreach($responsaveis as $responsavel): ?>
		<tr>
			<td><?php echo $responsavel->nome; ?></td>
			<td><?php echo $responsavel->setor; ?></td>
			<td><?php echo $responsavel->telefone; ?></td>
			<td><?php echo $responsavel->setor; ?></td>
		</tr>
	<?php endforeach; endif; ?>
	</table>
</div>